// index.js
// 获取应用实例
const App = getApp()
const api = require('../../utils/requst.js').API;
Page({
  data: {
    top:0,
    detail:{}
  },
  onLoad(e) {
    let top =App.globalData.systemInfo.statusBarHeight + App.globalData.menuButton.height + (App.globalData.menuButton.top - App.globalData.systemInfo.statusBarHeight)*2
    console.log(e.id)
    api.workList({pageSize:1,pageNum: 1,id:e.id}).then(res=>{
      var list = res.data.data.records[0]
      this.setData({detail:list})
  })
    this.setData({top:top})
  },
  handleChangeScroll ({ detail }) {
    this.setData({
        current_scroll: detail.key
    });
  },
  handleChange ({ detail }) {
    this.setData({
        current: detail.key
    });
  },
})
